﻿<div class="portlet light" ng-init="getUser()">
    <div class="portlet-title">
        <div class="caption">
            <div class="caption-subject font-green-haze bold"> 
                <span ng-show="!Id">添加菜单</span>
                <span ng-show="Id">编辑菜单</span>
            </div>
        </div>
    </div>
    <div class="portlet-body">
        <form class="form-horizontal" name="menu" novalidate ng-submit-force="true" ng-submit="btnSubmit_Click(menu.$valid)">
            <div class="row">
                <div class="form-group col-xs-6">
                    <label class="col-xs-4 control-label">菜单标题：</label>
                    <div class="col-xs-8">
                        <input type="text" name="title" ng-model="title" class="form-control" placeholder="菜单标题" required ng-maxlength="50" />
                    </div>
                </div> 
            </div>
            <div class="row">
                <div class="form-group col-xs-6">
                    <label class="col-xs-4 control-label">图标：</label>
                    <div class="col-xs-6"> 
                        <input type="text" name="icon" ng-model="icon" class="form-control" placeholder="图标" required ng-maxlength="50" />
                    </div>
                    <div class="col-xs-2">
                        <i style="margin-top:15px;font-size:25px" class="material-icons">{{icon}}</i>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group col-xs-6">
                    <label class="col-xs-4 control-label">URL：</label>
                    <div class="col-xs-8">
                        <input type="text" class="form-control" name="url" ng-model="url" placeholder="URL" />
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group col-xs-6">
                    <label class="col-xs-4 control-label">显示权限：</label>
                    <div class="col-xs-8">
                        <input type="text" class="form-control" name="view" ng-model="view" required placeholder="显示权限" />
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group col-xs-6">
                    <label class="col-xs-4 control-label">排序号：</label>
                    <div class="col-xs-8">
                        <input type="number" class="form-control" name="sortNo" ng-model="sortNo" required placeholder="排序号" />
                    </div>
                </div>
            </div> 

            <div class="row margin-top-10">
                <div class="col-sm-offset-4 col-sm-8">
                    <button type="submit" class="btn btn-primary btn-raised">保存</button>
                    <a class="btn btn-default btn-raised" ng-click="btnCancel_Click()">取消</a> 
                </div>
            </div>
        </form>
    </div>
</div>